import Vue from 'vue'
import VueRouter from 'vue-router'

import Boss from "@/views/Boss.vue";
import Student from "@/views/Student.vue";
import admin from "@/views/admin.vue";
import login from "@/views/login.vue";
import UserManagementView from "@/views/UserManagementView.vue";
import login1 from "@/views/login1.vue";
import JobManagementView from "@/views/JobManagementView.vue";
import AnnouncementsManagementView from "@/views/AnnouncementsManagementView..vue";
import FeedbacksManagementView from "@/views/FeedbacksManagementView.vue";
import HomeView from "@/views/HomeView.vue";
// import StudentView from "@/views/StudentView";
import JobSearchView from "@/views/JobSearchView";
import JobApplicationView from "@/views/JobApplicationView";
import StudentView1 from "@/views/StudentView1";
import interviewList from "@/views/interviewList.vue";
import eventList from "@/views/eventList.vue";
import notificationList from "@/views/notificationList.vue";
import notificationList2 from "@/views/notificationList2.vue";

import HomeView1 from '@/views/HomeView1.vue';
import RecruitmentActivities from '@/views/RecruitmentActivities.vue';
import Notifications from '@/views/Notifications.vue';
import OnlineTestsAndInterviews from '@/views/OnlineTestsAndInterviews.vue';
import SignUpForm from '@/views/SignUpForm.vue';
import CareerPosting from "@/views/CareerPosting.vue";
import EnterpriseInformation from "@/views/EnterpriseInformation.vue";
import ResumeScreening from "@/views/ResumeScreening.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: login1,
  },
  {
    path: '/login1',
    name: 'login1',
    component: login1
  },
  {
    path: '/login',
    name: 'login2',
    component: login
  },
  // {
  //   path: '/UserManagementView',
  //   name: 'login',
  //   component: UserManagementView
  // },
  {
    path: '/admin',
    name: 'AdminView',
    component: admin,
    redirect:'/HomeView',
    children:[
      { path: '/HomeView', name: 'UserManagementView',component:HomeView },
      { path: '/UserManagement', name: 'UserManagementView',component:UserManagementView },
      { path: '/JobManagementView', name: 'JobManagementView',component:JobManagementView },
      { path: '/AnnouncementsManagementView', name: 'AnnouncementsManagementView',component:AnnouncementsManagementView },
      { path: '/FeedbacksManagementView', name: 'FeedbacksManagementView',component:FeedbacksManagementView },
    ]
  },
  {
    path: '/Boss',
    name: 'BossView',
    component: Boss,
    redirect:'/EnterpriseInformation',
    children:[
      { path: '/interviewList', name: 'interviewList',component:interviewList },
      { path: '/eventList', name: 'eventList',component:eventList },
      { path: '/notificationList', name: 'notificationList',component:notificationList },
      { path: '/notificationList2', name: 'notificationList2',component:notificationList2 },
      { path: '/CareerPosting', name: 'notificationList2',component:CareerPosting },
      { path: '/EnterpriseInformation', name: 'notificationList2',component:EnterpriseInformation },
      { path: '/ResumeScreening', name: 'notificationList2',component:ResumeScreening },

    ]
  },
  {
    path: '/Student',
    name: 'StudentView',
    component: Student,
    redirect:'/StudentView1',
    children: [
        { path: '/JobSearchView', name: 'JobSearchView',component:JobSearchView },
        { path: '/JobApplicationView', name: 'JobApplicationView',component:JobApplicationView },
        { path: '/StudentView1', name: 'StudentView1',component:StudentView1 },
        { path: '/Student/notifications', name: 'Notifications', component: Notifications },
        { path: '/Student/online-tests-and-interviews', name: 'OnlineTestsAndInterviews', component: OnlineTestsAndInterviews },
    ]
  },

  {
    path: '/signup',
    name: 'SignUpForm',
    component: SignUpForm
  },

  {
    path: '/home1',
    name: 'HomeView1',
    component: HomeView1,
    children: [
      {
        path: '/home1/recruitment-activities',
        name: 'RecruitmentActivities',
        component: RecruitmentActivities
      },

    ]
  },
  // {
  //   path: '/home1',
  //   name: 'home1',
  //   component: HomeView1
  // },
  // {
  //   path: '/home2',
  //   name: 'home2',
  //   component: HomeView2
  // },
  // {
  //   path: '/inventory',
  //   name: 'InventoryView',
  //   component: InventoryView
  // },
  // {
  //   path: '/Inventory2',
  //   name: 'InventoryView2',
  //   component: InventoryView2
  // },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
